/**
 * Created by LeungZ on 2016/8/22.
 */
class Log {
    constructor(yaml, $modalInstance, $timeout, $window) {
        'ngInject';
        this._modalInstance = $modalInstance;
        this.yaml = yaml;

        $timeout(function () {
            angular.element('pre').css({
                'max-height': ($window.innerHeight - 160) + 'px',
                'overflow-y': 'scroll'
            });
        }, 0, false);
    }

    cancel() {
        this._modalInstance.dismiss('cancel');
    }
}

export default Log